import https from '../../https';
import type { Department,DepartmentPageParm } from './department';
export const addApi = (parm:Department) =>{
    return https.post("/api/department/add",parm)
}
export const editApi = (parm:Department) =>{
    return https.put("/api/department/edit",parm)
}
export const getListApi = (parm:DepartmentPageParm)=>{
    return https.get("/api/department/list",parm)
}
export const deleteApi = (deptId:string) =>{
    return https.delete(`/api/department/${deptId}`)
}
export const getSelectDeptApi = () =>{
    return https.get("/api/department/getSelectDept")
}